how to download file html button

86

how to download file html button -

<a href="file.doc">Download!</a>

how to make a button download a file in html -

$("#fileRequest").click(function(){ /* code to download? */ });

Comments

Submit
0 Comments